package com.mixsmart.core.test.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.mixsmart.core.bean.entity.IEntityBean;

@Entity
@Table(name="t_test_user")
public class TUser implements IEntityBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1009533844321391830L;

	private String id;
	
	private String name;
	
	private String gender;
	
	private Integer age;
	
	public TUser() {
	}
	
	public TUser(String id) {
		this.id = id;
	}

	public TUser(String id, String name, String gender, Integer age) {
		this.id = id;
		this.name = name;
		this.gender = gender;
		this.age = age;
	}

	@Id
	@Column(name="id",length=32)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name="name",length=255,nullable=false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name="gender",length=10,nullable=false)
	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	@Column(name="age",nullable=false)
	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	@Override
	public String toString() {
		return "id="+this.id+"#name="+this.name+"#gender"+this.gender+"#age="+this.age;
	}

	
}
